package com.lagou.cl;

import com.lagou.cl.bootstrap.ClientConsumerBootStrap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author 程  林
 * @date 2020-05-24 16:58
 * @description //消费者
 * @since V1.0.0
 */
@SpringBootApplication(scanBasePackages = {"com.lagou"})
public class SpringbootNettyConsumerApplication implements CommandLineRunner {

	@Autowired
	private ClientConsumerBootStrap clientConsumerBootStrap;

	public static void main(String[] args) {

		SpringApplication.run(SpringbootNettyConsumerApplication.class);

	}

	@Override
	public void run(String... args) throws Exception {
		clientConsumerBootStrap.start();
	}
}
